class PlayerScore(val experience:Int, val level:Int) {
    operator fun component1() = experience
    operator fun component2() = level
}

fun main() {
    //解构
    val(x,y) = PlayerScore(10,20)
    println("$x,$y")
}